package com.jiangyg.mall.admin.service;

import com.jiangyg.mall.admin.entity.OauthClient;
import com.jiangyg.mall.admin.vo.OauthClientVO;
import com.jiangyg.mall.admin.dao.OauthClientDao;
import com.jiangyg.mall.db.mybatis.BaseServiceImpl;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class OauthClientServiceImpl extends BaseServiceImpl<OauthClientDao, OauthClient> implements OauthClientService {

    @Autowired
    public OauthClientServiceImpl(OauthClientDao baseMapper) {
        super(baseMapper);
    }

    @Override
    @Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true)
    public OauthClientVO selectById(String clientId) throws Exception {
        return this.executeSelectById(clientId, OauthClientVO.class);
    }

}
